all:
	arm-none-linux-gnueabi-gcc -O0 -fno-builtin -nostdinc -c -o start.o start.S
	arm-none-linux-gnueabi-gcc -O0 -fno-builtin -nostdinc -c -o main.o main.c
	arm-none-linux-gnueabi-ld start.o main.o -Tmap.lds -o KEY_POLLING_LED.elf
	arm-none-linux-gnueabi-objcopy -O binary  KEY_POLLING_LED.elf KEY_POLLING_LED.bin
	arm-none-linux-gnueabi-objdump -D KEY_POLLING_LED.elf > KEY_POLLING_LED.dis
clean:
	rm -rf *.bak start.o main.o KEY_POLLING_LED.elf KEY_POLLING_LED.bin KEY_POLLING_LED.dis
